object FrmDiscountInfoMng: TFrmDiscountInfoMng
  Left = 0
  Top = 0
  Caption = 'Discount Info Manage'
  ClientHeight = 491
  ClientWidth = 928
  Color = clBtnFace
  Font.Charset = DEFAULT_CHARSET
  Font.Color = clWindowText
  Font.Height = -11
  Font.Name = 'Tahoma'
  Font.Style = []
  OldCreateOrder = False
  OnCreate = FormCreate
  OnDestroy = FormDestroy
  PixelsPerInch = 96
  TextHeight = 13
  object pnlTop: TRzPanel
    Left = 0
    Top = 0
    Width = 928
    Height = 41
    Align = alTop
    TabOrder = 0
    DesignSize = (
      926
      39)
    object btnAdd: TButton
      Left = 631
      Top = 10
      Width = 75
      Height = 25
      Anchors = [akTop, akRight]
      Caption = #28155#21152#26041#26696
      TabOrder = 0
      OnClick = btnAddClick
    end
    object btnDel: TButton
      Left = 824
      Top = 10
      Width = 94
      Height = 25
      Anchors = [akTop, akRight]
      Caption = #21024#38500#29305#20215#26041#26696
      TabOrder = 1
      OnClick = btnDelClick
    end
    object btnModify: TButton
      Left = 726
      Top = 10
      Width = 75
      Height = 25
      Anchors = [akTop, akRight]
      Caption = #20462#25913#26041#26696
      TabOrder = 2
      OnClick = btnModifyClick
    end
    object btncapSaleQty: TButton
      Left = 8
      Top = 10
      Width = 161
      Height = 25
      Caption = #37325#26032#32479#35745#24403#21069#38144#21806#25968#37327
      TabOrder = 3
      OnClick = btncapSaleQtyClick
    end
  end
  object pnlHD: TRzPanel
    Left = 0
    Top = 41
    Width = 928
    Height = 232
    Align = alTop
    TabOrder = 1
    object grdDiscountInfo: TDBGridEh
      Left = 2
      Top = 2
      Width = 471
      Height = 228
      Align = alClient
      DataGrouping.GroupLevels = <>
      DataSource = dshd
      Flat = False
      FooterColor = clWindow
      FooterFont.Charset = DEFAULT_CHARSET
      FooterFont.Color = clWindowText
      FooterFont.Height = -11
      FooterFont.Name = 'Tahoma'
      FooterFont.Style = []
      IndicatorOptions = [gioShowRowIndicatorEh]
      ReadOnly = True
      TabOrder = 0
      TitleFont.Charset = DEFAULT_CHARSET
      TitleFont.Color = clWindowText
      TitleFont.Height = -11
      TitleFont.Name = 'Tahoma'
      TitleFont.Style = []
      Columns = <
        item
          EditButtons = <>
          FieldName = 'storeCode'
          Footers = <>
          Title.Caption = #24215#38138
          Width = 62
        end
        item
          EditButtons = <>
          FieldName = 'diNO'
          Footers = <>
          Title.Caption = #26041#26696
          Width = 177
        end
        item
          EditButtons = <>
          FieldName = 'fromDate'
          Footers = <>
          Title.Caption = #24320#22987#26085#26399
          Width = 101
        end
        item
          EditButtons = <>
          FieldName = 'toDate'
          Footers = <>
          Title.Caption = #32467#26463#26085#26399
          Width = 113
        end
        item
          EditButtons = <>
          FieldName = 'createDate'
          Footers = <>
          Title.Caption = #21019#24314#26085#26399
          Width = 109
        end>
      object RowDetailData: TRowDetailPanelControlEh
      end
    end
    object rzszpnl1: TRzSizePanel
      Left = 473
      Top = 2
      Width = 453
      Height = 228
      Align = alRight
      TabOrder = 1
      object mmoPlan: TRzMemo
        Left = 5
        Top = 0
        Width = 448
        Height = 228
        Align = alClient
        Color = clInfoBk
        ReadOnly = True
        ScrollBars = ssVertical
        TabOrder = 0
      end
    end
  end
  object pnlBottom: TRzPanel
    Left = 0
    Top = 273
    Width = 928
    Height = 218
    Align = alClient
    TabOrder = 2
    object grddt: TDBGridEh
      Left = 2
      Top = 2
      Width = 924
      Height = 214
      Align = alClient
      DataGrouping.GroupLevels = <>
      DataSource = dsdt
      Flat = False
      FooterColor = clWindow
      FooterFont.Charset = DEFAULT_CHARSET
      FooterFont.Color = clWindowText
      FooterFont.Height = -11
      FooterFont.Name = 'Tahoma'
      FooterFont.Style = []
      FooterRowCount = 1
      IndicatorOptions = [gioShowRowIndicatorEh]
      ReadOnly = True
      SumList.Active = True
      TabOrder = 0
      TitleFont.Charset = DEFAULT_CHARSET
      TitleFont.Color = clWindowText
      TitleFont.Height = -11
      TitleFont.Name = 'Tahoma'
      TitleFont.Style = []
      Columns = <
        item
          EditButtons = <>
          FieldName = 'style'
          Footers = <>
          Title.Caption = #27454#24335
          Width = 99
        end
        item
          EditButtons = <>
          FieldName = 'barcode'
          Footers = <>
          Width = 74
        end
        item
          EditButtons = <>
          FieldName = 'code'
          Footers = <>
        end
        item
          EditButtons = <>
          FieldName = 'Description'
          Footers = <>
          Title.Caption = #25551#36848
          Width = 281
        end
        item
          EditButtons = <>
          FieldName = 'qty'
          Footer.FieldName = 'qty'
          Footer.ValueType = fvtSum
          Footers = <>
          Title.Caption = #29305#21334#25968#37327
        end
        item
          EditButtons = <>
          FieldName = 'saleqty'
          Footer.FieldName = 'saleqty'
          Footer.ValueType = fvtSum
          Footers = <>
          Title.Caption = #24050#29305#21334#25968#37327
        end
        item
          EditButtons = <>
          FieldName = 'price'
          Footers = <>
          Title.Caption = #21407#20215
        end
        item
          EditButtons = <>
          FieldName = 'discount'
          Footers = <>
          Title.Caption = #25240#25187
        end
        item
          EditButtons = <>
          FieldName = 'discountPrice'
          Footers = <>
          Title.Caption = #25240#25187#20215
        end
        item
          EditButtons = <>
          FieldName = 'name'
          Footers = <>
          Title.Caption = #21517#31216
          Width = 231
        end
        item
          EditButtons = <>
          FieldName = 'size'
          Footers = <>
          Title.Caption = #22823#23567
          Width = 97
        end>
      object RowDetailData: TRowDetailPanelControlEh
      end
    end
  end
  object myqryHD: TMyQuery
    Connection = DMMySQL.conMySQL
    SQL.Strings = (
      'select * from discountinfohd order by createDate desc')
    Left = 376
    Top = 232
  end
  object myqrydt: TMyQuery
    Connection = DMMySQL.conMySQL
    SQL.Strings = (
      
        'select * from discountinfodt ddt left join goodsinfo gs on ddt.g' +
        'oodsid= gs.id order by barcode')
    MasterSource = dshd
    MasterFields = 'id'
    DetailFields = 'hdid'
    Left = 528
    Top = 384
    ParamData = <
      item
        DataType = ftLargeint
        Name = 'id'
        ParamType = ptInput
        Value = 48
      end>
  end
  object myqryPlan: TMyQuery
    Connection = DMMySQL.conMySQL
    SQL.Strings = (
      'select * from discountplan')
    AfterOpen = myqryPlanAfterOpen
    AfterRefresh = myqryPlanAfterRefresh
    MasterSource = dshd
    MasterFields = 'id'
    DetailFields = 'hdid'
    Left = 760
    Top = 64
    ParamData = <
      item
        DataType = ftUnknown
        Name = 'id'
      end>
  end
  object dshd: TDataSource
    DataSet = myqryHD
    Left = 408
    Top = 232
  end
  object dsdt: TDataSource
    DataSet = myqrydt
    Left = 568
    Top = 384
  end
end
